home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
PGM_TOOL
/
SMP_PT
/
CURSOR.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-04-02
|
888b
|
41 lines
{comments:
Try experimenting with the cursor editor (or on your own), I
only listed the very basic cursor commands (all the ones I use).
}
uses crt, dos;
procedure InvokeCursor(startscan, stopscan: integer);
Const
VideoIO = $10;
CursorShape = 1;
Var
Regs : Registers;
begin
With Regs do
begin
CH:=StartScan;
CL:=StopScan;
AH:=CursorShape;
Intr(VideoIO,Regs);
end;
end;
begin
clrscr;
writeln;
invokecursor(6,7);
write('[Normal Cursor] Press a key: '); readkey; writeln;
invokecursor(0,7);
write('[Block Cursor] Press a key: '); readkey; writeln;
invokecursor(3,7);
write('[Half Cursor] Press a key: '); readkey; writeln;
invokecursor(32,0);
write('[Cursor Bye-Bye] Press a key: '); readkey; writeln;
invokecursor(6,7); {return to normal}
end.